package com.xuexi.demos.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@TableName("ai_detection_results")
@NoArgsConstructor
@AllArgsConstructor
public class AIDetectionResult {
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableId(value = "object_key", type = IdType.AUTO)
    private String objectKey;
    private String className;
    private Double confidence;
    private Long inferenceTimeMs;
    private String device;
    private LocalDateTime createdAt;
}